<?php
$sign = $_GET['sign'];
$money = $_GET['money'];
$payid = $_GET['payid'];
$fpayid = $_GET['fpayid'];
include 'sdk.php';
$partner = 2147483647;//合作ID
$RSAkey = '-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt7412/7nGvBAXka5ehZS
a8U/7TqzAw7gviNRT6kl/pfEUSlFSXtBVs1xsqu8FSEOW/dlYBKI6FQ8rv3oTv8n
O2oQ/jQZ3wej+48rZuQTq5gwQ1qU5DUAoTXC9/aFpfPu3yrvnz6J+uv1oWhtkpjN
XXXXXXXXXXXXXXXXXXXXXXXXXXX
CrwecBWBj//juMlljxmj9enAI1N5Ag97hFnkLvI6FlGQw1IHOFHHYQ/KQPwkSATB
C9XAWwYx+3gPeZUnzbKP1K07YpthHIJdA+TIJpgIDf17gzFblTdWENR8RwpEqTNL
TwIDAQAB
-----END PUBLIC KEY-----';
$Fpay = new Fpay($partner,$RSAkey);
if($Fpay->check_return_data($sign,$money,$payid,$partner,$fpayid) ){ //&& $Fpay->get_user_pay_status($shno)
echo '我爱47';
}else{
echo '返回数据无效或者查询支付服务器验证交易失败';
}